package com.haoyun.mirage.gateway.client.fallback;

import com.haoyun.mirage.gateway.client.UserServiceClient;
import com.haoyun.mirage.gateway.dto.MenuDTO;
import com.haoyun.mirage.gateway.vo.UserVO;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Collections;
import java.util.List;

/**
 * Created by twg on 2018/5/31.
 */
@Component
public class UserServiceClientFallBack implements UserServiceClient {
    @Override
    public List<MenuDTO> findMenuByRole(@PathVariable("role") String role) {
        return Collections.EMPTY_LIST;
    }

    @Override
    public UserVO getUserByName(@PathVariable("username") String username) {
        return null;
    }
}
